home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT EMPTY.SCRIPT < prev    next >
Encoding:
Text File  |  1999-02-26  |  520 b   |  26 lines

  1. !!Script
  2. // Copyright ⌐ 1999 - Modelworks Software
  3. // @Created build 270 cm19990225
  4.  
  5. // Insert script helper for:
  6.  
  7. /**
  8. @Object: Range 
  9. @Method: empty() returns true if the range is empty.
  10. @Syntax: range.empty()
  11. @Summary: empty() returns true if the range is empty
  12. */
  13.  
  14. function DoCommand()
  15. {
  16.   var editor = getActiveEditor();
  17.   if (editor)
  18.   {
  19.     var selection = editor.getSelection();
  20.     editor.replace("range.empty()", selection);
  21.     editor.setActive("Insert range.empty");
  22.   }
  23. }
  24.  
  25. !!/Script
  26.